<%--
  Created by IntelliJ IDEA.
  User: Dink
  Date: 2022/1/25
  Time: 17:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>APP查看页面</title>
</head>
<body>
<%@ include file="comment/user_header.jsp"%>
<div style="position: relative;left: 230px;top:-10px;width: 1270px">
    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <div class="x_content">
                    <form action="${pageContext.request.contextPath}/app_info/update" onsubmit="return regs();" class="form-horizontal form-label-left"  enctype="multipart/form-data" method="post" >
                        <p style="font-size: 20px"><span >手游信息审核
                                <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                            </span>
                        </p>
                        <div class="clearfix"></div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">软件名称 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input readonly id="name" value="${app_info.softwareName}" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="softwareName" placeholder="请输入软件名称" required="required" type="text">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">AKP名称 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input readonly required="required" type="text"  value="${app_info.APKName}" name="APKName" placeholder="请输入APK名称"  class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">支持ROM <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input readonly class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2"  value="${app_info.supportROM}" name="supportROM" placeholder="请输入支持的ROM" required="required" type="text">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">界面语言 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input readonly  value="${app_info.interfaceLanguage}" name="interfaceLanguage" class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="website">软件大小 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input readonly type="text" id="website" value="${app_info.softwareSize}" name="softwareSize" required="required" class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" >下载次数 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input readonly type="text" value="${app_info.downloads}" name="downloads" required="required"class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3">所属平台<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input readonly type="text" value="${app_info.flatformName}" class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3">一级分类<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input readonly type="text" value="${app_info.categoryLevel1}" name="c1" class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3">二级分类<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input readonly type="text" value="${app_info.categoryLevel2}" name="c2" class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3">三级分类<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input readonly type="text" value="${app_info.categoryLevel3}" name="c2" class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label  class="control-label col-md-3 col-sm-3 col-xs-12">APP状态<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input readonly type="text" readonly value="${app_info.statusName}" class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="textarea">应用简介 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <textarea id="textarea"  readonly  name="appInfo" class="form-control col-md-7 col-xs-12">
                                    ${app_info.appInfo}
                                </textarea>
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">LOGO图片 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <img src="${app_info.logoLocPath}" width="50px" >
                            </div>
                        </div>
                        <div class="ln_solid"></div>
                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-3">
                                <a href="${pageContext.request.contextPath}/user_data/tstatus?id=${app_info.id}">
                                <button  type="button" class="btn btn-success">审核通过</button></a>
                                <a href="${pageContext.request.contextPath}/user_data/fstatus?id=${app_info.id}">
                                    <button  type="button" class="btn btn-success">审核不通过</button></a>
                                <a href="${pageContext.request.contextPath}/user_data/select">
                                    <button id="send" type="button" class="btn btn-success">返回</button></a>
                            </div>
                        </div>
                    </form>
                </div>
                    <div class="x_title">
                        <p class="text-muted font-13 m-b-30">
                        <h4>历史版本列表</h4>
                        </p>
                    </div>
                    <table id="datatable" class="table table-striped table-bordered">
                        <tr>
                            <td>软件名称</td>
                            <td>版本号</td>
                            <td>版本大小(单位:M)</td>
                            <td>发布状态</td>
                            <td>APK</td>
                            <td>最近更新时间</td>
                        </tr>
                            <tr>
                                <td>${app_version.appName}</td>
                                <td>${app_version.versionNo}</td>
                                <td>${app_version.versionSize}</td>
                                <td>${app_version.publishStatusName}</td>
                                <td>${app_version.apkFileName}</td>
                                <td><f:formatDate value="${app_version.modifyDate}" pattern="yyyy-MM-dd"/> </td>
                            </tr>
                    </table>
            </div>
        </div>
    </div>
</div>
<%@ include file="comment/foot.jsp"%>
</body>
</html>
